
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class RankingFaRankingCfg : public ManualSingleton <RankingFaRankingCfg>
{
	friend ManualSingleton <RankingFaRankingCfg>;
public:
	RankingFaRankingCfg();
	~RankingFaRankingCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const RankingFaRankingCfgInfo *GetRankingFaRankingCfgInfo(int32_t faRankingID);
	const RankingFaRankingCfgMap *GetRankingFaRankingCfgMap() { return &m_RankingFaRankingCfgMap; }
private:
	RankingFaRankingCfgMap m_RankingFaRankingCfgMap;
};

#define  g_MakeRankingFaRankingCfgTable() (RankingFaRankingCfg::Instance())
#define  g_GetRankingFaRankingCfgTable() (RankingFaRankingCfg::GetInstance())
#define  g_DelRankingFaRankingCfgTable() (RankingFaRankingCfg::Destroy())